class Person{
    public int a;
    static{
        System.out.println("静态代码块被执行了");
    }
    {
        System.out.println("实例代码块被执行了");
    }

    public Person(int a) {
        this.a = a;
        System.out.println("构造方法被执行了");
    }
}
public class Test {
    public static void main(String[] args) {
        Person person=new Person(1);
        System.out.println("---------------------");
        Person person2=new Person(1);
        System.out.println("---------------------");
        Person person3=new Person(1);
        System.out.println("---------------------");
        Person person4=new Person(1);

    }
}
